<?php

namespace app\api\model;

class ToCalculate
{
    public $obj;

    public function __construct(calculateInterface $obj)
    {
        $this->obj = $obj;
    }

    public function doing($result_data,$money,$type)
    {
        return $this->obj->calculate($result_data,$money,$type);
    }
}
